package learningThread.api.stopApi.sleepStop;

public class TestSleepStop1 {

    public static void main(String[] args) {
        try {
            //继承Thread
            MyThread1 thread = new MyThread1();
            thread.start();
            Thread.sleep(200);
            thread.interrupt();
            System.out.println("main end");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
